package com.sskj.market.bean;

import java.util.ArrayList;
import java.util.List;

public class CityBean{
    private String name;
    private List<City> city;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CityBean{" +
                "name='" + name + '\'' +
                '}';
    }

    public List<City> getCity() {
        if (city == null) {
            return new ArrayList<>();
        }
        return city;
    }
    public void setCity(List<City> city) {
        this.city = city;
    }
    public class City{
        private String name;

        public String getName() {
            return name == null ? "" : name;
        }
        public void setName(String name) {
            this.name = name;
        }
    }
}
